<template>
	<view class="" style="width: 100vw;height: 100vh">
	<!-- <view style="min-height: 100vh">
		<image class="bg" src="/static/login/log_bg.png" mode="scaleToFill"></image> -->
	<view class="content" :style="{'background':kbackgroundColor}" style="min-height: 100vh">
		
		<hx-navbar title="联系客服" :back="true" :fixed="false" :color="knavTitleColor" barPlaceholder="hidden" transparent="auto"></hx-navbar>
		<view class="container">
			<!-- <view class="box cell-item-cb" @click="PhoneCall(service_phone)">
				<view class="cell-item-ft">
					<view class="label">客服一</view>
					<view class="tel">{{service_phone}}</view>
				</view>
				<image class="phone-img" src="/static/user/phone.png" mode="aspectFit"></image>
			</view> -->
			<view class="wxCode">
				<image class="wx-title-img" src="/static/user/wx-code-title.png" mode="widthFix"></image>
				<!-- <image class="service_code" src="@/static/ldb.jpg" mode="aspectFit"></image> --> 
				<image class="service_code" src="@/static/user/dingyue.jpg" mode="aspectFit"></image>
				<!-- <image class="service_code" :src="service_code" mode="aspectFit"></image> -->
				<!-- <view class="color-9 m-t-40">
					--服务时间:8:00-18:00 --
				</view> -->
			</view>
		</view>
	</view>
</view>
</template>

<script>
	export default {
		data() {
			return {
				phone: ''
			}
		},
		computed: {
			service_phone() {
				return this.$store.state.config.service_phone;
			},
			service_code() {
				return this.$store.state.config.service_code;
			},
		},
		onShow() {
			this.phone = this.$store.state.config.service_phone
		},
			onPullDownRefresh() {
							setTimeout(function() {
								uni.stopPullDownRefresh()
							}, 500)
						},
		methods: {
			PhoneCall(Call) {
				console.log(Call.toString(), "=======call")

				uni.makePhoneCall({
					phoneNumber: Call.toString(),
					success(res) {
						console.log("success==", res)
					},
					fail(err) {
						console.log("fail==", err)
					}
				});
			},

		}
	}
</script>

<style lang="scss" scoped>
	.box {
		width: 100%;
		background-color: $bg-box;
		border-radius: 20rpx;
		padding: 40rpx 30rpx;
		.label {
			font-size: 28rpx;
			color: #000;
		}
		.tel {
			font-size: 28rpx;
			color: #FE005A;
			margin-left: 26rpx;
		}
		.phone-img {
			width: 35rpx;
			height: 35rpx;
		}
	}
	.wxCode {
		width: 100%;
		background-color: $bg-box;
		border-radius: 20rpx;
		padding: 33rpx 0 36rpx;
		margin-top: 30rpx;
		.wx-title-img {
			width: 329rpx;
			display: block;
			margin: 0 auto;
		}
		.service_code {
			width: 229rpx;
			height: 229rpx;
			display: block;
			margin: 36rpx auto 0;
		}
	}

	.container {
		padding: 30rpx 40rpx;
	}
</style>
